/**
 * Multi and single selector language spec and settings
 */
var selectGUI_hu = {
	checkAllText : "Mind",
	uncheckAllText : "Egyik sem",
	noneSelectedText : "Lehetőségek",
	selectedText : function(numChecked, numTotal, checkedInputs) {
		// example: emulating the selectedList option
		if (numChecked <= 5) {
			return checkedInputs.map(function(element) {
				var title = element.title;
				if (title.indexOf("(") >= 0) {
					title = title.substring(0, title.indexOf("("));
				}
				return title;
			}).join(', ');
		} else {
			return numChecked + " kiválasztva";
		}
	}
};

var singleSelectGUI_hu = {
	multiple : false,
	noneSelectedText : "Lehetőségek",
	header : false,
	selectedText : function(numChecked, numTotal, checkedInputs) {
		// example: emulating the selectedList option
		return checkedInputs[0].title;
	}
}

/**
 * Bootstrap tooltip format
 */
var tooltipOptionsHtmlFormat = {
	html : true,
	placement : "top",
	delay : 500
}

var datePickerInit = {
	dateFormat : 'yy.mm.dd.'
};

/**
 * For the time now in special format with leading zeros; HH:MM:SS
 */
Date.prototype.timeNow = function() {
	return ((this.getHours() < 10) ? "0" : "") + this.getHours() + ":" + ((this.getMinutes() < 10) ? "0" : "")
			+ this.getMinutes() + ":" + ((this.getSeconds() < 10) ? "0" : "") + this.getSeconds();
};